// this sets the background color of the master UIView (when there are no windows/tab groups on it)

(function () { 
Lhs.ui.CreateAboutWindow = function () {
	var pathimage=Ti.App.Properties.getString('pathimage');
	var win = Titanium.UI.createWindow({
	    id: 'AboutWindow',
	    title: 'LIÊN HỆ',
	    fullscreen: true,
	    backgroundImage:pathimage+'bg.png',
	    navBarHidden:true,
	});
	
	var egc = new globals.EventGarbageCollection(win);
	egc.addEventListener('back_'+win.id, function () {
		Lhs.navGroup.close(win, {
	         animated: true
	    });
		
	});
	
	//HEADER ON WINDOWS
	
			
	var main_header=require('controls/header').Createheader({
		  	idWinParent:win.id,
		  	height:Ti.App.Properties.getInt('height_Header'),//44,
		  	title: 'LIÊN HỆ',
    })
	win.add(main_header);
	
	var url_about
	if(Lhs.isAndroid())
	 	url_about='../pages/index.html';
	else
		url_about='pages/index.html';
	
	
	var webview = Ti.UI.createWebView({
		top:main_header.height,
		
	    url:url_about
	});
	win.add(webview);
	
	
	return win;
       
    };
})();